package com.dmap.admin.annotation;

import org.springframework.core.Ordered;
import org.springframework.core.annotation.Order;

import java.lang.annotation.*;

/**
 * \* User: silent
 * \* Date: 12/01/18 Time: 17:28
 * \* Description: 规定时间内用户请求接口次数限制注解
 * \
 */
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.METHOD)
@Documented
@Order(Ordered.HIGHEST_PRECEDENCE)
public @interface LimitRequest {

    int limitCounts() default 1;

    int timeSecond() default 60;
}